package com.kasax.test.bc.ui.fragment

import android.view.View
import androidx.navigation.fragment.findNavController
import com.kasax.base.BasicBindingFragment
import com.kasax.test.bc.R
import com.kasax.test.bc.databinding.FragmentBasicComponentTestBinding

/**
 * Android提供的组件
 * MVP&MVVM
 */
class BasicComponentTestFragment : BasicBindingFragment<FragmentBasicComponentTestBinding>() {
    override fun getLayoutId(): Int = R.layout.fragment_basic_component_test


    override fun addListeners(view: View) {
        viewBinding.btnAndroidNetworkComponentTest.setOnClickListener {
            findNavController().navigate(R.id.action2_android_network_comp_test)
        }
    }
}